begintownscript;
variables;
    int fx = 0, fy = 0;
body;
beginstate INIT_STATE;
    add_range_to_group(9, 42, 1);
    set_name(8, "Rezo");
    set_name(74, "Wemba");
    set_name(63, "Father Devon");
    if ((get_current_tick() < 625) || (get_current_tick() > 4375) &&
         (get_current_tick() < 5000 + 625) || (get_current_tick() > 5000 + 4375) &&
         (get_current_tick() < 10000 + 625) || (get_current_tick() > 10000 + 4375) &&
         (get_current_tick() < 15000 + 625) || (get_current_tick() > 15000 + 4375) &&
         (get_current_tick() < 20000 + 625) || (get_current_tick() > 20000 + 4375) &&
         (get_current_tick() < 25000 + 625) || (get_current_tick() > 25000 + 4375))
         set_state_continue(50);
break;
beginstate EXIT_STATE;

break;
beginstate START_STATE;
    if ((get_current_tick() < 625) || (get_current_tick() > 4375) &&
         (get_current_tick() < 5000 + 625) || (get_current_tick() > 5000 + 4375) &&
         (get_current_tick() < 10000 + 625) || (get_current_tick() > 10000 + 4375) &&
         (get_current_tick() < 15000 + 625) || (get_current_tick() > 15000 + 4375) &&
         (get_current_tick() < 20000 + 625) || (get_current_tick() > 20000 + 4375) &&
         (get_current_tick() < 25000 + 625) || (get_current_tick() > 25000 + 4375))
         set_state_continue(50);
break;
beginstate 10;
    if (get_flag(3, 0) == 0)
    {
        reset_dialog();
        add_dialog_str(0, "The city of Alexandra, though you saw it from outside, amazes you. Those who have seen the outside know nothing about the colossal size of this capitol.", 0);
        add_dialog_str(1, "It is almost three times bigger than Krizsan. The white marble rock used to build it reflects the sunlight in many bright colors. This beauty can be seen from far away.", 0);
        add_dialog_str(2, "There is small traffic everywhere, there are children playing outside, there are busy merchants running back and forth. The city extends beyond vision to the west and east.", 0);
        add_dialog_str(3, "Then you realize how this city has kept its beauty. There are lots of guards. Tough guards. No villains would choose to come here without advanced siege supplies.", 0);
        add_dialog_str(4, "This is really something that you will remember for the rest of your lives.", 0);
        run_dialog(1);
    }
    set_flag(3, 0, 1);
break;
beginstate 11;
    block_entry(1);
    if (in_boat() >= 0)
        move_to_new_town(10, 4, 25);
    else move_to_new_town(10, 4, 24);
break;
beginstate 12;
    block_entry(1);
    if (in_boat() >= 0)
        move_to_new_town(19, 4, 26);
    else move_to_new_town(19, 4, 24);
break;
beginstate 50;
       while (fy < 64)
         {
         if (get_terrain(fx, fy) == 480)
             set_terrain(fx, fy, 209);
         fx = fx + 1;
         if (fx == 64)
             {
             fx = 0;
             fy = fy + 1;
             }
         }
break;